package com.isesol.seckill.service;

import com.isesol.seckill.enums.*;
import com.isesol.seckill.result.*;

/**
 * 秒杀逻辑 Service
 *
 * @author Peter Zhang
 */
public interface SecKillService {

    void setSecKillStatus(String code, String id, SecKillStatusEnum secKillStatusEnum)
            throws Exception;

    Result<SecKillResult> secKill(String code, String id, String captchaId, String answer, String token)
            throws Exception;
}
